widget: Properly remove event controllers in finalize
authorTimm Bäder <mail@baedert.org>
Sat, 19 May 2018 21:03:32 +0000 (23:03 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 19 May 2018 21:03:32 +0000 (23:03 +0200)
commit3edd24fb0152789fc383568a14b38792a2c9b535
tree19527bafa6243ff3046dbf93c9a0941b60e68aac
parent3a8607190f1583d01115be2a2c4dc8fd1869bd6f
widget: Properly remove event controllers in finalize

We were mutating the list while iterating over it. This was not a
problem before since remove_controller just set the controller pointer
to NULL instead of actually removing it from the list of controllers.
gtk/gtkwidget.c